package com.smart.enums;

public enum ExpireEcpTplMsgEnum {
    FIRST("first","电子券即将过期提醒"),
    KEYWORD1("keyword1","拳名称"),
    KEYWORD2("keyword2","有效期"),
    KEYWORD3("keyword3","派券人"),
    KEYWORD4("keyword4","派券站点");


    private String code;
    private String name;
    ExpireEcpTplMsgEnum(String code, String name){
        this.code = code;
        this.name = name;
    }

    public static String getName(String code){
        for (ExpireEcpTplMsgEnum obj : ExpireEcpTplMsgEnum.values()) {
            if(obj.getCode().equals(code)){
                return obj.getName();
            }
        }
        return "";
    }

    public String getName() {
        return name;
    }

    public String getCode() {
        return code;
    }
}
